package com.scala.learn.project

import java.net.URL

/**
  * @Copyright: Shanghai Definesys Company.All rights reserved.
  * @Description:
  * @author: chuhaitao
  * @since: 2019/2/26 21:22
  * @history:
  *          1.2019/2/26 created by chuhaitao
  */
object Test {

  def main(args: Array[String]): Unit = {

    var url = new URL("https://ke.qq.com/bigData/xiaowang/index.html")

    var host = url.getHost
    var path = url.getPath
    var sub: Array[String] = path.split("/")
   var  S=sub(1)
    print(host + ";" + url.getPath + ";" + S)


  }

}
